<template>
  <div class="no-content">
    <img src="@/assets/img/no-content-color.png">
    <p>
      <strong class="nodata">暂无数据</strong>
    </p>
  </div>
</template>

<script setup lang="ts">
const emit = defineEmits(['closeDialog'])

emit('closeDialog')
</script>

<style lang="less" scoped>
.no-content {
  flex: 1;
  flex-direction: column;
  // background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  p {
    font-size: 14px;
    margin: 0;
    color: #999;
    line-height: 2em;
    strong {
      color: #404145;
      font-size: 1.1em;
    }
  }
  img {
    width: 120px;
    margin-bottom: 30px;
  }
}

@media (min-width: 750px) {
  .no-content {
  flex: 1;
  flex-direction: column;
  // background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  p {
    font-size: 14px;
    margin: 0;
    color: #999;
    line-height: 2em;
    strong {
      color: #404145;
      font-size: 1.1em;
    }
  }
  img {
    width: 120px;
    margin-bottom: 30px;
  }
}
}
</style>
